Skip to content

feat: add assign-prs-to-author reusable workflow#4

Merged
mattmillerai merged 1 commit into
mainfrom
feat/assign-prs-to-author-reusable
Jul 3, 2026
Merged

feat: add assign-prs-to-author reusable workflow#4
mattmillerai merged 1 commit into
mainfrom
feat/assign-prs-to-author-reusable

Conversation

@mattmillerai

@mattmillerai mattmillerai commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

What

Adds a third reusable workflow to this repo: assign-prs-to-author.yml. It assigns every open PR with no assignees to its author, so unassigned PRs get routed back to whoever opened them. Bot-authored PRs (Dependabot, Renovate, app tokens) are skipped by default via the skip-bots input.

Extracted from a copy that currently lives in Comfy-Org/cloud, following the same thin-caller pattern as cursor-review and detect-unreviewed-merge.

Why a reusable workflow

It's generic CI housekeeping with zero repo-specific anything — pure github-script over context.repo. Hosting it here means consumer repos carry a small scheduled caller instead of a maintained copy (no drift).

Permissions

Uses the caller's GITHUB_TOKEN (no secrets to pass). The calling job must grant pull-requests: write and issues: write — assignees are set through the issues API.

Caller pattern

name: Housekeeping - Assign PRs to Author
on:
  schedule:
    - cron: "0 2 * * *"   # daily at 02:00 UTC
  workflow_dispatch:
jobs:
  assign:
    permissions:
      pull-requests: write
      issues: write
    uses: Comfy-Org/github-workflows/.github/workflows/assign-prs-to-author.yml@<sha>  # v1

Extracts the housekeeping workflow that assigns every open PR with no
assignees to its author into a reusable workflow_call, so consumer repos
carry only a thin scheduled caller instead of a copy. Bot-authored PRs are
skipped by default (skip-bots input). Uses the caller's GITHUB_TOKEN, so
the calling job grants pull-requests: write + issues: write.
@mattmillerai mattmillerai force-pushed the feat/assign-prs-to-author-reusable branch from f4ac048 to 92dcc1a Compare July 3, 2026 00:41
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 32 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: acc950a9-0179-4c45-8c83-b785ddc37505

📥 Commits

Reviewing files that changed from the base of the PR and between 81685fa and 92dcc1a.

📒 Files selected for processing (2)
  • .github/workflows/assign-prs-to-author.yml
  • README.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/assign-prs-to-author-reusable
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch feat/assign-prs-to-author-reusable

Comment @coderabbitai help to get the list of available commands.

@mattmillerai mattmillerai merged commit b7b94bc into main Jul 3, 2026
3 checks passed
@mattmillerai mattmillerai deleted the feat/assign-prs-to-author-reusable branch July 3, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants